package com.jianbing.shasha.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianbing.common.annotation.Excel;
import com.jianbing.common.core.domain.BaseEntity;

/**
 * 用户学习测试记录对象 shasha_user_record
 * 
 * @author ruoyi
 * @date 2024-06-09
 */
public class ShashaUserRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Excel(name = "编号")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 问题id */
    @Excel(name = "问题id")
    private Long questionId;

    /** 录音保存路径 */
    @Excel(name = "录音保存路径")
    private String answerPath;

    /** 记录对应类型 学习 测试 */
    @Excel(name = "记录对应类型 学习 测试")
    private String testType;

    /** 是否正确 0错误 1正确 */
    @Excel(name = "是否正确 0错误 1正确")
    private Integer correct;

    /** 关卡数 */
    @Excel(name = "关卡数")
    private Long levels;

    @JsonFormat(pattern = "HH:mm:ss.ttt")
    @Excel(name = "选择花费时长", width = 30, dateFormat = "HH:mm:ss.ttt")
    private String selectAnswerDuration;

    /** 插入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "插入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insertTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setAnswerPath(String answerPath) 
    {
        this.answerPath = answerPath;
    }

    public String getAnswerPath() 
    {
        return answerPath;
    }
    public void setTestType(String testType) 
    {
        this.testType = testType;
    }

    public String getTestType() 
    {
        return testType;
    }
    public void setCorrect(Integer correct) 
    {
        this.correct = correct;
    }

    public Integer getCorrect() 
    {
        return correct;
    }
    public void setLevels(Long levels) 
    {
        this.levels = levels;
    }

    public Long getLevels() 
    {
        return levels;
    }
    public void setInsertTime(Date insertTime) 
    {
        this.insertTime = insertTime;
    }

    public Date getInsertTime() 
    {
        return insertTime;
    }

    public String getSelectAnswerDuration() {
        return selectAnswerDuration;
    }

    public void setSelectAnswerDuration(String selectAnswerDuration) {
        this.selectAnswerDuration = selectAnswerDuration;
    }


    @Override
    public String toString() {
        return "ShashaUserRecord{" +
                "id=" + id +
                ", userId=" + userId +
                ", questionId=" + questionId +
                ", answerPath='" + answerPath + '\'' +
                ", testType='" + testType + '\'' +
                ", correct=" + correct +
                ", levels=" + levels +
                ", selectAnswerDuration='" + selectAnswerDuration + '\'' +
                ", insertTime=" + insertTime +
                '}';
    }
}
